﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CSReporter
{
    public partial class ReportToForm : Form
    {
        private string toCall = "";

        public string ToCall
        {
            get { return toCall; }
            set { toCall = value; }
        }

        public ReportToForm()
        {
            InitializeComponent();
        }

        private void sendButton_Click(object sender, EventArgs e)
        {
            if (toTextBox.Text.Trim().Length > 0)
            {
                toCall = toTextBox.Text;
                DialogResult = DialogResult.OK;
            }
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
